<?php
				for($i=0; $i< count( $horario );$i++ ) {
					switch( substr( $horario[$i],0,1) ) {
						case 2: echo "SEG ";break;
						case 3: echo "TER ";break;
						case 4: echo "QUA ";break;
						case 5: echo "QUI ";break;
						case 6: echo "SEX ";break;
						case 7: echo "SAB ";break;
					}
					switch( strtolower( substr( $horario[$i],1,1) ) ) {
						case 'm': $hora = 6;
						break;
						case 't': $hora = 12;
						break;
						case 'n': $hora = 18;
						break;
					}
					echo  ($hora + substr( $horario[$i],2,1)) .":00";
					if( (substr($horario[$i],3,1))!=null ) 
						echo  " - ". ($hora + substr( $horario[$i],3,1)) .":00 <br />"; 
				}

?>